﻿package events
{
	import flash.events.Event;
	import flash.geom.Point;
	
	public class MoveEvent extends Event
	{
		public var point : * ;
		public var support : * ;
		public var increment : Boolean ;
		
		public static const STARTMOVING : String = "startmoving" ;
		public static const ENDMOVING : String = "endmoving" ;
		public static const MOVING : String = "moving" ;
		public static const FINFRAME : String = "finframe" ;
		
		public static const MOVE : String = "move" ;
		public static const REPOSE : String = "repose" ;
		public static const STAND : String = "stand" ;
		public static const MOVEPIEDGAUCHE : String = "movepiedgauche" ;
		public static const POSEPIEDGAUCHE : String = "posepiedgauche" ;
		public static const MOVEPIEDDROIT : String = "movepieddroit" ;
		public static const POSEPIEDDROIT : String = "posepieddroit" ;
		public static const CHANGEPIED : String = "changepied" ;

		public static const HIT_OBSTACLE : String = "HIT_OBSTACLE" ;
		
		public static const MOVEMAINGAUCHE : String = "movemaingauche" ;
		public static const MOVEMAINDROITE : String = "movemaindroite" ;
		
		public function MoveEvent(type : String, point:*=null, support:*=null, increment:Boolean=false ) 
		{
			super( type );// , true ) ;
			this.point = point ; 
			this.support = support ; 
			this.increment = increment ; 
		}
		override public function clone() : Event
		{
			return new MoveEvent( type, point, support, increment ) ;
		}		
		override public function toString() : String
		{
			return "[MoveEvent : " + type + " " + point + " " + support + " " + increment + "]" ;
		}		
	}
}